<?php


	namespace app\model;


	class Member extends BaseModel
	{

		#关联地址
		protected function address () {
			return $this->hasOne(Address::class, 'm_id', 'id');
		}

		#关联卡券
		protected function card () {
			return $this->hasOne(Card::class, 'm_id', 'id');
		}

	}
